## mako

<%page expression_filter="h" args="online_help_token"/>

<%namespace name='static' file='../static_content.html'/>
<%namespace file='../main.html' import="login_query"/>
<%!
from django.urls import reverse
from django.utils.translation import gettext as _
%>

<ol class="left nav-global list-inline authenticated">
  <%block name="navigation_global_links_authenticated">
    % if settings.FEATURES.get('COURSES_ARE_BROWSABLE') and not show_program_listing:
      <li class="item nav-global-01">
        <a class="btn" href="${marketing_link('COURSES')}">${_('Explore courses')}</a>
      </li>
    % endif
    % if show_dashboard_tabs:
      <li class="tab-nav-item">
        <a class="${'active ' if reverse('dashboard') == request.path else ''}tab-nav-link" href="${reverse('dashboard')}">
          ${_("Courses")}
        </a>
      </li>
      % if show_program_listing:
        <li class="tab-nav-item">
          <a class="${'active ' if reverse('program_listing_view') in request.path else ''}tab-nav-link" href="${reverse('program_listing_view')}">
            ${_("Programs")}
          </a>
        </li>
      % endif
    % endif
  </%block>
</ol>

<%include file="../user_dropdown.html"/>

% if settings.FEATURES.get('ENABLE_HELP_LINK'):
  <a href="${get_online_help_info(online_help_token)['doc_url']}"
          rel="noopener"
           target="_blank"
           class="doc-link">${_("Help")}</a>
% endif
